package cn.itcast.config;

import cn.itcast.domain.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
public class PersonConfig {

    @Bean
    @Scope(value = "prototype")
    public Person person(){
        return new Person();
    }


}
